﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Framework.LogServices.Models
{
    /// <summary>
    /// 日志实体
    /// </summary>
    public class LogEntry
    {
        public string Message { get; set; }
        public string Level { get; set; }
        public Exception Exception { get; set; }
        public DateTime Timestamp { get; set; } = DateTime.Now;
        public string Id { get; set; } = Guid.NewGuid().ToString(); // 添加唯一标识

        public string key { get; set; }
    }
    /// <summary>
    /// 日志实体
    /// </summary>
    public class LogEntity
    {
        /// <summary>
        /// 日志分组
        /// </summary>
        public string Group { get; set; }
        /// <summary>
        /// 日志内容
        /// </summary>
        public string Message { get; set; }
        /// <summary>
        /// 日志标题
        /// </summary>
        public string Title { get; set; }
        /// <summary>
        /// 日志等级
        /// </summary>
        public string Leve { get; set; }
        /// <summary>
        /// 日志记录时间
        /// </summary>
        public DateTime Timestamp { get; set; } = DateTime.Now;
        /// <summary>
        /// 异常信息
        /// </summary>
        public Exception? Exception { get; set; }
    }
}
